package by.grsu.hdm;


import by.grsu.hdm.devices.MediaCenter;
import by.grsu.hdm.devices.UsbFlashDrive;

import by.grsu.hdm.media.Track;


public class HomeDeviceManagerStarter {

	public MediaCenter Starter() {
		
		//PropertyConfigurator.configure("log4j.properties");	
				
		MediaCenter media = new MediaCenter("MEDIA");
		UsbFlashDrive flash=new UsbFlashDrive("FLASH-4GB");
		//add Track in flash
		Track track=new Track("Yesterday", "mp3");
		Track track1=new Track("War", "avi");
		Track track2=new Track("Hello", "mp4");
		flash.addTrack(track);flash.addTrack(track1);flash.addTrack(track2);
		media.getUsbPort().connectDevice(flash);
				
		
		return media;
		

}}
